Skip to content

Conversation

dallan-keylogic
Copy link
Contributor

Summary/Motivation:

This PR is to compare the work we're doing on the feature branch scaling_toolbox with main and to run the CI tests we have to allow us to view CodeCov reports.

Legal Acknowledgement

By contributing to this software project, I agree to the following terms and conditions for my contribution:

  1. I agree my contributions are submitted under the license terms described in the LICENSE.txt file at the top level of this directory.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

dallan-keylogic and others added 4 commits August 15, 2025 14:20
* rescue files from overloaded git branch

* fix due to api tweaks

* run black

* forgot to add a file

* fix test errors

* pin coolprop version

* update version, disable superancillaries

* run black

* respond to Marcus's feedback

* getting close

* address Will's comments

* tests for set_scaling_factor

* support for unions in python 3.9

* testing the scaling profiler is way too fragile

* modify test to be less fragile

* remove pdb
* rescue files from overloaded git branch

* fix due to api tweaks

* run black

* forgot to add a file

* fix test errors

* pin coolprop version

* update version, disable superancillaries

* run black

* respond to Marcus's feedback

* getting close

* address Will's comments

* tests for set_scaling_factor

* support for unions in python 3.9

* testing the scaling profiler is way too fragile

* modify test to be less fragile

* remove pdb

* rescue files from branch

* towards scaling cv

* preliminary testing

* scaling by defn constraint

* scale constraint by definition constraint

* Disable obsolete tests for now

* run black

* actually add tests

* inh

* tests for methods rescued from old scaling tools

* pylint

* test to make sure that value is reverted

* Apply suggestions from code review

spelling fixes

Co-authored-by: Brandon Paul <[email protected]>

* additional clarity

* more files rescued from branch

---------

Co-authored-by: Brandon Paul <[email protected]>
Copy link

codecov bot commented Sep 15, 2025

Codecov Report

❌ Patch coverage is 81.65399% with 193 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.11%. Comparing base (00c61dc) to head (42e8728).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...erties/modular_properties/base/generic_property.py 76.73% 29 Missing and 18 partials ⚠️
idaes/core/base/control_volume_base.py 81.48% 14 Missing and 16 partials ⚠️
...rties/modular_properties/phase_equil/bubble_dew.py 74.62% 10 Missing and 7 partials ⚠️
idaes/core/scaling/util.py 89.05% 6 Missing and 9 partials ⚠️
...dular_properties/reactions/equilibrium_constant.py 51.85% 10 Missing and 3 partials ⚠️
...erties/modular_properties/base/generic_reaction.py 74.35% 2 Missing and 8 partials ⚠️
idaes/core/scaling/custom_scaler_base.py 94.21% 5 Missing and 2 partials ⚠️
idaes/core/scaling/scaling_base.py 69.56% 5 Missing and 2 partials ⚠️
.../models/properties/modular_properties/eos/ideal.py 65.00% 3 Missing and 4 partials ⚠️
...rties/modular_properties/state_definitions/FcPh.py 66.66% 2 Missing and 5 partials ⚠️
... and 11 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1662      +/-   ##
==========================================
+ Coverage   77.06%   77.11%   +0.04%     
==========================================
  Files         395      395              
  Lines       62761    63727     +966     
  Branches    10233    10555     +322     
==========================================
+ Hits        48369    49145     +776     
- Misses      11981    12079      +98     
- Partials     2411     2503      +92     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

* error for unnamed expressions

* pylint

* default is warning=False

* make sure expression walker doesn't emit warnings

* rescue files from different branch

* tests for scaler base get_scaling_factor
@dallan-keylogic dallan-keylogic marked this pull request as ready for review September 16, 2025 17:34
@dallan-keylogic dallan-keylogic marked this pull request as draft September 16, 2025 17:35
@ksbeattie ksbeattie added the Priority:Normal Normal Priority Issue or PR label Sep 18, 2025
dallan-keylogic and others added 3 commits September 23, 2025 16:40
* error for unnamed expressions

* pylint

* default is warning=False

* make sure expression walker doesn't emit warnings

* fix get_default_scaling_factor

* no build on demand

* not every component has lock attribute creation context

* rescue files from different branch

* avoid duplicate code and add tests

* remove unused variable

* fix spelling

* pylint

* changes suggested from review

---------

Co-authored-by: Bethany Nicholson <[email protected]>
* rescue files from overloaded git branch

* fix due to api tweaks

* run black

* forgot to add a file

* fix test errors

* pin coolprop version

* update version, disable superancillaries

* run black

* respond to Marcus's feedback

* getting close

* address Will's comments

* tests for set_scaling_factor

* support for unions in python 3.9

* testing the scaling profiler is way too fragile

* modify test to be less fragile

* remove pdb

* rescue files from branch

* towards scaling cv

* preliminary testing

* scaling by defn constraint

* scale constraint by definition constraint

* Disable obsolete tests for now

* run black

* actually add tests

* inh

* tests for methods rescued from old scaling tools

* pylint

* test to make sure that value is reverted

* Apply suggestions from code review

spelling fixes

Co-authored-by: Brandon Paul <[email protected]>

* additional clarity

* more files rescued from branch

* rescue files from other branch

* first tests

* tests

* additional scaling

* more tests

* fixes

* run black

* black on forgotten file

* fix failing tests

* fix issues when initializing FpcTP

* begin scaling for cubic complementarity vle

* error for unnamed expressions

* pylint

* enthalpy of formation test

* default is warning=False

* make sure expression walker doesn't emit warnings

* Cubic complementarity VLE test

* avoid auto-construction and run black

* new scaling for test_BTIdeal_FcTP

* BT ideal test

* regularly scheduled scaling has been interrupted by a bug in scaling core

* fix get_default_scaling_factor

* tests for one more example ported

* delegate scaling for solubility product forms

* test FcPh

* test FcTP

* test_FpcTP

* test FTPx

* FPhx

* no build on demand

* not every component has lock attribute creation context

* no more enth_mol_phase

* run black

* move to scaler object get scaling factor for future extension

* get rid of remaing gsf and pylint changes

* Actually scale cubic complementarity VLE and pylint

* rescue files from different branch

* tests for scaler base get_scaling_factor

* remove dependency on fix_gdsf

* pylint

* maybe pylint will like this better

* Is this acceptable to both pylint and black?

* stash

* fix failing test

* black

* pylint

* minor tweaks

* increase test coverage

* avoid generation of properties

* more test coverage for IdealBubbleDew

* Renaming and comments

* fix wrong constraint scaling method

* reply to review comments

* revert legacy test

* failing test

* improve error message

* update authors

* forgot to save file

* fix exception match

* Let's see if three solves is enough

* less strict complementarity

* xfail

---------

Co-authored-by: Brandon Paul <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:Normal Normal Priority Issue or PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants